package com.xinggq.user.api.dto.userrole;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 用户角色关联创建请求
 *
 * @author system
 * @since 2025-01-10
 */
@Data
@Schema(description = "用户角色关联创建请求")
public class UserRoleCreateRequest {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID", example = "1234567890123456789")
    private Long userId;

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    @Schema(description = "角色ID", example = "9876543210987654321")
    private Long roleId;

    /**
     * 分配人ID
     */
    @Schema(description = "分配人ID", example = "1111111111111111111")
    private Long assignedBy;
}